import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import agconnect from "@hw-agconnect/api";
import { createPinia } from "pinia";


var agConnectConfig =
{
	"agcgw": {
		"backurl": "connect-drcn.hispace.hicloud.com",
		"url": "connect-drcn.dbankcloud.cn",
		"websocketbackurl": "connect-ws-drcn.hispace.dbankcloud.com",
		"websocketurl": "connect-ws-drcn.hispace.dbankcloud.cn"
	},
	"agcgw_all": {
		"CN": "connect-drcn.dbankcloud.cn",
		"CN_back": "connect-drcn.hispace.hicloud.com",
		"DE": "connect-dre.dbankcloud.cn",
		"DE_back": "connect-dre.hispace.hicloud.com",
		"RU": "connect-drru.hispace.dbankcloud.ru",
		"RU_back": "connect-drru.hispace.dbankcloud.cn",
		"SG": "connect-dra.dbankcloud.cn",
		"SG_back": "connect-dra.hispace.hicloud.com"
	},
	"websocketgw_all": {
		"CN": "connect-ws-drcn.hispace.dbankcloud.cn",
		"CN_back": "connect-ws-drcn.hispace.dbankcloud.com",
		"DE": "connect-ws-dre.hispace.dbankcloud.cn",
		"DE_back": "connect-ws-dre.hispace.dbankcloud.com",
		"RU": "connect-ws-drru.hispace.dbankcloud.ru",
		"RU_back": "connect-ws-drru.hispace.dbankcloud.cn",
		"SG": "connect-ws-dra.hispace.dbankcloud.cn",
		"SG_back": "connect-ws-dra.hispace.dbankcloud.com"
	},
	"client": {
		"cp_id": "2850086000459400714",
		"product_id": "461323198428882931",
		"client_id": "1519766273934793920",
		"client_secret": "274A3D420969551C6CB6C98DF4915018F79BB5A0327E8A80B27E491FBD638B2C",
		"project_id": "461323198428882931",
		"app_id": "245150415727894825",
		"api_key": "DQEDAPGOv4MTTLmAKqjDj0OIM/nQG0Xx6zJSbuLUQWmnu647gCVtrovpVXgj8RMUxrjFLBprNuKDwJHLJlxHMz1Tf/bscnHct6Wzxw=="
	},
	"oauth_client": {
		"client_id": "112152993",
		"client_type": 7
	},
	"app_info": {
		"app_id": "245150415727894825"
	},
	"service": {
		"analytics": {
			"collector_url": "datacollector-drcn.dt.hicloud.com,datacollector-drcn.dt.dbankcloud.cn",
			"collector_url_ru": "datacollector-drru.dt.dbankcloud.ru,datacollector-drru.dt.hicloud.com",
			"collector_url_sg": "datacollector-dra.dt.hicloud.com,datacollector-dra.dt.dbankcloud.cn",
			"collector_url_de": "datacollector-dre.dt.hicloud.com,datacollector-dre.dt.dbankcloud.cn",
			"collector_url_cn": "datacollector-drcn.dt.hicloud.com,datacollector-drcn.dt.dbankcloud.cn",
			"resource_id": "p1",
			"channel_id": ""
		},
		"edukit": {
			"edu_url": "edukit.cloud.huawei.com.cn",
			"dh_url": "edukit.cloud.huawei.com.cn"
		},
		"search": {
			"url": "https://search-drcn.cloud.huawei.com"
		},
		"cloudstorage": {
			"storage_url_sg_back": "https://agc-storage-dra.cloud.huawei.asia",
			"storage_url_ru_back": "https://agc-storage-drru.cloud.huawei.ru",
			"storage_url_ru": "https://agc-storage-drru.cloud.huawei.ru",
			"storage_url_de_back": "https://agc-storage-dre.cloud.huawei.eu",
			"storage_url_de": "https://ops-dre.agcstorage.link",
			"storage_url": "https://agc-storage-drcn.platform.dbankcloud.cn",
			"storage_url_sg": "https://ops-dra.agcstorage.link",
			"storage_url_cn_back": "https://agc-storage-drcn.cloud.huawei.com.cn",
			"storage_url_cn": "https://agc-storage-drcn.platform.dbankcloud.cn"
		},
		"ml": {
			"mlservice_url": "ml-api-drcn.ai.dbankcloud.com,ml-api-drcn.ai.dbankcloud.cn"
		}
	},
	"region": "CN",
	"configuration_version": "3.0"
};

agconnect.instance().configInstance(agConnectConfig);


import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import VueQrcode from 'vue-qrcode';

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate);
createApp(App)
	.use(ElementPlus)
	.use(router)
	.use(pinia)
	.component('vue-qrcode', VueQrcode)
	.mount('#app');

export default pinia;